package com.hua;


import lombok.extern.slf4j.Slf4j;
import org.junit.runner.RunWith;
import org.springframework.aop.framework.autoproxy.DefaultAdvisorAutoProxyCreator;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.condition.ConditionalOnMissingBean;
import org.springframework.boot.web.servlet.ServletComponentScan;
import org.springframework.cache.annotation.EnableCaching;
import org.springframework.context.annotation.Bean;
import org.springframework.scheduling.annotation.EnableAsync;

import org.springframework.transaction.annotation.EnableTransactionManagement;

@SpringBootApplication
@Slf4j

//@EnableTransactionManagement
//#开启后事务如果报错，是因为springboot2.0+默认关闭缓存 一开始是再yml文件中配置的 但是不行 所以。。。。
@EnableTransactionManagement(proxyTargetClass = true)
public class ExerciseApplication {
    public static void main(String[] args) {
        SpringApplication.run(ExerciseApplication.class,args);
    }
}
